package mypackage2;

import java.rmi.*;

public class Client {
  public static void main(String args[]) {
    try {
      String serverURL = "rmi://" + args[0] + "/Server";
      ServerIntf serverIntf =
                    (serverIntf)Naming.lookup(serverURL);

      System.out.println("" + serverIntf.add(0, 2));
    }
    catch(Exception e) {
      System.out.println("Exception: " + e);
    }
  }
}
